-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cli] Several changes #1428
[cli] Several changes #1428
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1428 +/- ##
=======================================
Coverage 74.15% 74.15%
=======================================
Files 287 287
Lines 7652 7652
Branches 667 667
=======================================
Hits 5674 5674
Misses 1865 1865
Partials 113 113
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great
* @param signer Address that is authorized to sign the tx as validator | ||
* @return The Account address | ||
*/ | ||
validatorSignerToAccount: (signer: Address) => Promise<Address> = proxyCall( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this consistent with what @nambrot is renaming things? If not, can we aim for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wanted to be on top of nam pr but couldn't...
so when we have that, we'll have to move some methods and have a consistent naming
* @param address The address of the account | ||
* @return Returns `true` if account exists. Returns `false` otherwise. | ||
*/ | ||
isSigner: (address: string) => Promise<boolean> = proxyCall(this.contract.methods.isAuthorized) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
answered above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
process.env.NO_SYNCCHECK = 'true' | ||
|
||
testWithGanache('account:authorize cmd', (web3: Web3) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome!
@@ -1,30 +1,30 @@ | |||
import { flags } from '@oclif/command' | |||
import { CLIError } from '@oclif/errors' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Also: - Checks on cmds - support use of signer
Description
Changes:
Tested
Related issues
Backwards compatibility
Changes cli affiliate command